package com.vlin.device.value.converter;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import com.vlin.entity.mode.DeviceMode;
/*
 * 
 * 存储不同类型的converter  ,比如涂鸦的，或者其他的；
 * 
 * */
public class ParamValueConverters {

	public static final Map<DeviceMode, ParamValueConverter> ModeConverterMap = new ConcurrentHashMap<>();
	
	public static void setModeConverter(DeviceMode deviceMode, ParamValueConverter converter) {
		ModeConverterMap.put(deviceMode, converter);
	}
	
	public static ParamValueConverter getConverter(DeviceMode deviceMode){
		
		return ModeConverterMap.get(deviceMode);
	}
	
}
